-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CompatHelper: bump compat for CxxWrap to 0.16 #66
CompatHelper: bump compat for CxxWrap to 0.16 #66
Conversation
c8c4914
to
0c9af17
Compare
@barche would you happen to be able to help with the upgrade? Building the wrappers now fails when switching to latest cxxwrap. |
I think this is a libcxxwrap bug actually. @PraneethJain from the logs this seems to be caused by
Any ideas how this can happen? I am not able to reproduce this in a libcxxwrap test. |
Lexicographic comparison for The reason for the test failure here could possibly be because the library is compiled using C++17 (https://github.com/JuliaIPU/IPUToolkit.jl/actions/runs/9489008777/job/26149313737?pr=66#step:8:1903), where |
@PraneethJain are you suggesting that compiling with |
Hi, yes compiling on C++20 might solve the issue. In case that doesn't work, I can explicitly handle the case of |
94fdfe0
to
e2a4ea5
Compare
Using
|
@giordano C++20 features aren't fully implemented on g++ 9, the Upgrading to g++ 10 and then using C++20 should solve the issue. JuliaInterop/libcxxwrap-julia#163 makes it so that this would work across versions. |
e2a4ea5
to
dd55667
Compare
Ok, by switching to G++ 10 does get me past the building error, but now
Also:
It looks like |
I rerun the tests with latest version of libcxxwrap_julia, but I'm still getting
I tried to grep the error message in libcxxwrap but I couldn't find it, I have no idea where that's coming from. Is there a way to change the expected compiler name? |
With libcxxwrap 0.13.2 you should be able to revert to GCC 9 and the c++17 standard. You may also need to add I don't know where the error about finding the compiler comes from, normally finding the compiler is handled by cmake but that is not used here. It would probably be more robust to switch to a CMake-based approach, but I don't think it's really needed if the above suggestion works. |
But I'm very confused by why this is happening at runtime at all? |
Just to be super clear: the error isn't happening during compilation of the wrapper, that step is now successful, instead the error message pops up during evaluation of Julia code when running the tests of the package, which is what makes it annoying. I don't see what is looking for a C++ compiler to start with. |
As far as I can tell, this is poplar itself trying to compile some code that is generated in that test. Simply installing GCC9 in addition to GCC10 may fix this, or somehow changing the default compiler setting, but a quick search wasn't helpful in figuring out how. |
dd55667
to
5cd080a
Compare
5cd080a
to
7688bac
Compare
Ok, thanks, I confirm this probably comes from poplar, grepping the entire SDK finds a match in |
7688bac
to
ceb0cad
Compare
ceb0cad
to
f9e1a12
Compare
@barche Do I understand correctly that I think I misunderstood the use of |
This pull request changes the compat entry for the
CxxWrap
package from0.14
to0.14, 0.16
.This keeps the compat entries for earlier versions.
Note: I have not tested your package with this new compat entry.
It is your responsibility to make sure that your package tests pass before you merge this pull request.